package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public abstract class fad$c extends Binder implements fad {

    static class c implements fad {
        private IBinder ॱ;

        c(IBinder iBinder) {
            this.ॱ = iBinder;
        }

        public IBinder asBinder() {
            return this.ॱ;
        }

        public void ˎ(int i) throws RemoteException {
            Parcel obtain = Parcel.obtain();
            Parcel obtain2 = Parcel.obtain();
            try {
                obtain.writeInterfaceToken("com.huawei.gamebox.plugin.gameservice.service.ICallback");
                obtain.writeInt(i);
                this.ॱ.transact(1, obtain, obtain2, 0);
                obtain2.readException();
            } finally {
                obtain2.recycle();
                obtain.recycle();
            }
        }

        public void ˋ(String str, String str2) throws RemoteException {
            Parcel obtain = Parcel.obtain();
            Parcel obtain2 = Parcel.obtain();
            try {
                obtain.writeInterfaceToken("com.huawei.gamebox.plugin.gameservice.service.ICallback");
                obtain.writeString(str);
                obtain.writeString(str2);
                this.ॱ.transact(2, obtain, obtain2, 0);
                obtain2.readException();
            } finally {
                obtain2.recycle();
                obtain.recycle();
            }
        }

        public void ˎ(String str) throws RemoteException {
            Parcel obtain = Parcel.obtain();
            Parcel obtain2 = Parcel.obtain();
            try {
                obtain.writeInterfaceToken("com.huawei.gamebox.plugin.gameservice.service.ICallback");
                obtain.writeString(str);
                this.ॱ.transact(3, obtain, obtain2, 0);
                obtain2.readException();
            } finally {
                obtain2.recycle();
                obtain.recycle();
            }
        }
    }

    public fad$c() {
        attachInterface(this, "com.huawei.gamebox.plugin.gameservice.service.ICallback");
    }

    public static fad ˎ(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.gamebox.plugin.gameservice.service.ICallback");
        if (queryLocalInterface == null || !(queryLocalInterface instanceof fad)) {
            return new c(iBinder);
        }
        return (fad) queryLocalInterface;
    }

    public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
        String str = "com.huawei.gamebox.plugin.gameservice.service.ICallback";
        switch (i) {
            case 1:
                parcel.enforceInterface(str);
                ˎ(parcel.readInt());
                parcel2.writeNoException();
                return true;
            case 2:
                parcel.enforceInterface(str);
                ˋ(parcel.readString(), parcel.readString());
                parcel2.writeNoException();
                return true;
            case 3:
                parcel.enforceInterface(str);
                ˎ(parcel.readString());
                parcel2.writeNoException();
                return true;
            case 1598968902:
                parcel2.writeString(str);
                return true;
            default:
                return super.onTransact(i, parcel, parcel2, i2);
        }
    }
}
